import { _decorator, Component, EPhysics2DDrawFlags, Node, PhysicsSystem2D, RigidBody2D } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Sceen001')
export class Sceen001 extends Component {
    @property(RigidBody2D) box1: RigidBody2D
    @property(RigidBody2D) box2: RigidBody2D


    start() {
        // PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb |
        //     EPhysics2DDrawFlags.Pair |
        //     EPhysics2DDrawFlags.CenterOfMass |
        //     EPhysics2DDrawFlags.Joint |
        //     EPhysics2DDrawFlags.Shape

        console.log(this.box1.getMass(), this.box2.getMass())
    }

    update(deltaTime: number) {
        
    }
}


